﻿<Window x:Class="CECB.Project.Insert_ProjEIADetails"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Insert_ProjEIADetails" Height="801" Width="835"
        
        
          xmlns:toolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit"      
        WindowStartupLocation="CenterScreen" 
        Loaded="Window_Loaded" Background="#AA000000" AllowsTransparency="True" WindowStyle="None" WindowState="Maximized" 
        mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006">
    <Grid Height="790" Width="823" Margin="0,30,0,0">
        <Grid.RowDefinitions>
            <RowDefinition Height="221*" />
            <RowDefinition Height="569*" />
        </Grid.RowDefinitions>

        <Rectangle Margin="5,0,38,97" Stroke="White" RadiusY="19.5" RadiusX="19.5" StrokeThickness="4" Grid.RowSpan="2">
            <Rectangle.Effect>
                <DropShadowEffect Direction="330" BlurRadius="24" ShadowDepth="13" />
            </Rectangle.Effect>
            <Rectangle.Fill>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="Black" Offset="0" />
                    <GradientStop Color="#FFA3A1A1" Offset="0.494" />
                    <GradientStop Color="#FF272121" Offset="0" />
                    <GradientStop Color="#FF272121" Offset="1" />
                </LinearGradientBrush>
            </Rectangle.Fill>
        </Rectangle>
        <Label Content="Assign a Project to EIA " Height="auto" HorizontalAlignment="Center" Margin="22,20,558,164"  VerticalAlignment="Center" Width="auto" FontSize="20" FontStretch="Normal" FontStyle="Normal" FontWeight="Black" Foreground="#FFEFEFEF" Canvas.Left="35" Canvas.Top="-10"></Label>
        <StackPanel Width="384" Background="DimGray" OpacityMask="{x:Null}" Canvas.Left="-85" Canvas.Top="10" Margin="19,63,415,282" Grid.RowSpan="2">
            <WrapPanel VerticalAlignment="Top"  Background="#FF3E3832" Orientation="Horizontal" Margin="0,5,0,0">
                <Label Content="Available Projects" Height="28" Width="119" Name="labelProjRef" HorizontalAlignment="Left" Margin="25,0,0,0" VerticalAlignment="Top" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
                <ComboBox Height="28" Name="comboBox_ProjRefrnce" Width="228"  SelectedValuePath="proj_reference" FontSize="16" SelectionChanged="comboBox_ProjRefrnce_SelectionChanged" Margin="4" Foreground="Black" Background="#FFFFECA1" >
                    <ComboBox.ItemTemplate>
                        <DataTemplate>
                            <StackPanel Orientation="Horizontal">
                                <TextBlock Text="{Binding Path=proj_name}" Margin="5,0"/>
                                <TextBlock Text=" - " Margin="5,0"/>
                                <TextBlock Text="{Binding Path=proj_reference}" Margin="5,0"/>
                            </StackPanel>
                        </DataTemplate>
                    </ComboBox.ItemTemplate>
                </ComboBox>
            </WrapPanel>
            <WrapPanel VerticalAlignment="Top" Orientation="Horizontal" Margin="0,5,0,0" />
            <WrapPanel VerticalAlignment="Top"  Background="#FF3E3832" Orientation="Horizontal" Margin="0,5,0,0" Height="37">
                <Label Content="Project Name" Height="28" Width="121" Name="label_projname" HorizontalAlignment="Left" Margin="25,0,0,0" VerticalAlignment="Top" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
                <TextBox  Name="textBox_projname"   TextWrapping="Wrap" VerticalAlignment="Top" Height="28" FontSize="16" Background="#FFFFECA1" SelectionBrush="#FF6E6E6E" Foreground="#FF332F2F" HorizontalAlignment="Right" Width="228"/>
            </WrapPanel>
            <WrapPanel VerticalAlignment="Top" Orientation="Horizontal" Margin="0,5,0,0" />
            <WrapPanel VerticalAlignment="Top" Orientation="Horizontal" Margin="0,5,0,0" />
        </StackPanel>
        <WrapPanel Canvas.Left="432" Canvas.Top="582" Name="wrapPanel4" Margin="554,407,56,105" Grid.Row="1">
            <Button Background="{x:Null}" BorderBrush="White" Click="button_insertEIADetails_Click" Height="44" Margin="2,0" Name="SaveButton" Width="98">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <Image Grid.Column="0" Height="32" Margin="2" Source="images\save.png" Width="32" />
                    <StackPanel Grid.Column="1" HorizontalAlignment="Stretch" Margin="2" VerticalAlignment="Center">
                        <TextBlock Margin="0" Padding="0" Text="Save" TextWrapping="NoWrap" Foreground="White" />
                    </StackPanel>
                </Grid>
            </Button>
        </WrapPanel>
        <StackPanel Height="362" HorizontalAlignment="Left" Margin="414,68,0,0" Name="stackPanel2" VerticalAlignment="Top" Width="347" Grid.RowSpan="2"></StackPanel>
        <WrapPanel Name="wrapPanel13" Margin="423,48,62,374" Grid.Row="1" Background="#FFFFECA1">
            <Image Height="180" Name="image_modelImage" Stretch="Fill" Width="330" />
        </WrapPanel>
        <WrapPanel Name="wrapPanel15" Margin="423,21,61,0" Grid.Row="1" Height="28" VerticalAlignment="Top" Background="#FF3E3832">
            <Label BorderBrush="White" BorderThickness="0" Content="Model Image" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" Height="28" Name="label10" Width="138" />
            <Label BorderBrush="White" BorderThickness="0" Content="Information" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" Height="28" Name="label_ModelInfo" Width="147" />
        </WrapPanel>
        <WrapPanel Name="wrapPanel14" Margin="423,95,61,558" Grid.RowSpan="2" Background="#FFFFECA1">
            <Image Height="136" Name="image_PlanImage" Stretch="Fill" Width="345" />

        </WrapPanel>
        <WrapPanel Name="wrapPanel16" Orientation="Horizontal" Background="#FF3E3832" Margin="23,195,420,567" Grid.RowSpan="2">
            <Label BorderBrush="White" BorderThickness="0" Content="Location" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" Height="28" HorizontalAlignment="Left" Margin="25,0,0,0" Name="label11" VerticalAlignment="Top" Width="119" />
            <TextBox Name="textBox_Location" TextWrapping="Wrap" VerticalAlignment="Top" Height="28" FontSize="16" Background="#FFFFECA1" SelectionBrush="#FF6E6E6E" Foreground="#FF332F2F" HorizontalAlignment="Right" Width="228" IsEnabled="True" IsReadOnly="True" />
        </WrapPanel>
        <WrapPanel Name="wrapPanel_SimpleCiteria" Canvas.Left="37" Background="#FF3E3832" Canvas.Top="486" Height="29" Orientation="Horizontal" Margin="24,329,427,211" Grid.Row="1">
            <Label BorderBrush="White" BorderThickness="0" Content="Simple Criteria " FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" Height="28" HorizontalAlignment="Left" Margin="25,0,0,0" Name="label3" VerticalAlignment="Top" Width="135" />
            <WrapPanel Margin="0,5,0,0" Orientation="Horizontal" VerticalAlignment="Top" />
            <ComboBox Height="23" Name="comboBox_simpleCriteria" FontSize="14" FontStyle="Italic" FontWeight="Medium" Width="204" SelectionChanged="comboBox_simpleCriteria_SelectionChanged">
                <ComboBoxItem Content="1-3" />
                <ComboBoxItem Content="1-5" />
                <ComboBoxItem Content="1-9" />
            </ComboBox>
        </WrapPanel>
        <WrapPanel Name="wrapPanel_Importence" Background="#FF3E3832" Orientation="Horizontal" Canvas.Left="37" Canvas.Top="442" Margin="24,363,428,179" Grid.Row="1">
            <Label BorderBrush="White" BorderThickness="0" Content="Importance Criteria" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" Height="28" HorizontalAlignment="Left" Margin="25,0,0,0" Name="label4" VerticalAlignment="Top" Width="139" />
            <WrapPanel Margin="0,5,0,0" Orientation="Horizontal" VerticalAlignment="Top" />
            <ComboBox Height="23" Name="comboBox_importnceCriteria" Width="182" FontSize="14" FontStyle="Italic" FontWeight="Medium" SelectionChanged="comboBox_importnceCriteria_SelectionChanged" Background="#FFFFECA1" BorderBrush="{x:Null}">
                <ComboBoxItem Content="Select" />
                <ComboBoxItem Content="1-3" />
                <ComboBoxItem Content="1-5" />
                <ComboBoxItem Content="1-9" />
            </ComboBox>
            <Label Content="*" FontSize="20" Foreground="Red" Height="20" Padding="2,0,2,0" />
        </WrapPanel>
        <WrapPanel Name="wrapPanel_Magnitude" Height="29" Background="#FF3E3832" Orientation="Horizontal" Canvas.Left="37" Canvas.Top="537" Margin="0,329,425,211" Grid.Row="1" HorizontalAlignment="Right" Width="372">
            <Label BorderBrush="White" BorderThickness="0" Content="Magnitude Criteria" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" Height="28" HorizontalAlignment="Left" Margin="25,0,0,0" Name="label5" VerticalAlignment="Top" Width="137" />
            <WrapPanel Margin="0,5,0,0" Orientation="Horizontal" VerticalAlignment="Top" />
            <ComboBox Height="23" Name="comboBox_magnitudeCriteria" FontSize="14" FontStyle="Italic" FontWeight="Medium" Width="182" SelectionChanged="comboBox_magnitudeCriteria_SelectionChanged" Background="#FFFFECA1" BorderBrush="{x:Null}">
                <ComboBoxItem Content="Select" />
                <ComboBoxItem Content="1-3" />
                <ComboBoxItem Content="1-5" />
                <ComboBoxItem Content="1-9" />
            </ComboBox>
            <Label Content="*" FontSize="20" Foreground="Red" Height="20" Padding="2,0,2,0" />
        </WrapPanel>
        <WrapPanel   Height="29" Background="#FF3E3832" Orientation="Horizontal" Canvas.Left="37" Canvas.Top="486" Margin="24,293,427,247" Grid.Row="1">
            <Label BorderBrush="White" BorderThickness="0" Content="Matrix " FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" Height="28" HorizontalAlignment="Left" Margin="25,0,0,0" Name="label6" VerticalAlignment="Top" Width="139" />
            <WrapPanel Margin="0,5,0,0" Orientation="Horizontal" VerticalAlignment="Top" />
            <ComboBox Height="23" Name="comboBox_EIAMatrix" FontSize="14" FontStyle="Italic" FontWeight="Medium"  Width="182" SelectionChanged="comboBox_EIAMatrix_SelectionChanged" Background="#FFFFECA1" BorderBrush="{x:Null}">
                <ComboBoxItem Content="Select a Matrix" />
                <ComboBoxItem Content="Leopold" />
                <ComboBoxItem Content="Simple" />
            </ComboBox>
            <Label Content="*" FontSize="20" Foreground="Red" Height="20" Padding="2,0,2,0" />
        </WrapPanel>
        <WrapPanel Height="29" Background="#FF3E3832" Orientation="Horizontal" Canvas.Left="35" Canvas.Top="564" Margin="423,292,61,248" Grid.Row="1">
            <Label BorderBrush="White" BorderThickness="0" Content="To Date" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" Height="28" HorizontalAlignment="Left" Margin="25,0,0,0" Name="label7" VerticalAlignment="Top" Width="96" />
           <!-- <DatePicker Height="25" Name="datePicker_ToDate" Width="193" SelectedDateChanged="datePicker_ToDate_SelectedDateChanged" SelectedDateFormat="Long" FontWeight="Bold" FontStretch="Normal" FontStyle="Italic" IsManipulationEnabled="False" IsHitTestVisible="True" AllowDrop="False" />-->
            <DatePicker Height="27" Name="datePicker_ToDate" Width="205.592" VerticalAlignment="Top" VerticalContentAlignment="Stretch" UseLayoutRounding="False" IsManipulationEnabled="False" SelectedDateFormat="Long" SelectedDateChanged="datePicker_ToDate_SelectedDateChanged" Foreground="#FF141414" FontWeight="Bold" FontStyle="Italic" Padding="2,6,2,2" />

            <Label Content="*" FontSize="20" Foreground="Red" Height="20" Padding="2,0,2,0" />
        </WrapPanel>
        <WrapPanel Canvas.Left="37" Background="#FF3E3832" Canvas.Top="512" Height="27" Name="wrapPanel9" Margin="423,260,61,282" Grid.Row="1">
            <Label Content="From Date" Height="28" Name="label14" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" HorizontalAlignment="Left" Margin="25,0,0,0" VerticalAlignment="Top" Width="96" />
            <DatePicker Height="27" Name="datePicker_FromDate" Width="205.592" VerticalAlignment="Top" VerticalContentAlignment="Stretch" UseLayoutRounding="False" IsManipulationEnabled="False" SelectedDateFormat="Long" SelectedDateChanged="datePicker_FromDate_SelectedDateChanged" Foreground="#FF141414" FontWeight="Bold" FontStyle="Italic" Padding="2,6,2,2" />
            <Label Content="*" FontSize="20" Foreground="Red" Height="20" Padding="2,0,2,0" />
        </WrapPanel>

        <TextBox
  Name="tbMultiLine"
  TextWrapping="Wrap"
  AcceptsReturn="True"
  VerticalScrollBarVisibility="Visible" Margin="24,203,425,282" Grid.Row="1" Background="#FFFFECA1"></TextBox>
        <WrapPanel Margin="423,209,391,0" Orientation="Horizontal" VerticalAlignment="Top" Grid.Row="1" />
        <Label Content="Duration" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="Red" Grid.Row="1" Height="28" HorizontalAlignment="Left" Margin="423,216,0,0" Name="label_Dates" VerticalAlignment="Top" Width="340" Background="#FF3E3832" />
        <WrapPanel Name="wrapPanel5" Margin="423,66,61,126" Background="#FF3E3832">
            <Label BorderBrush="White" BorderThickness="0" Content="Plan Image" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" Height="28" Name="label17" Width="147" />
            <Label BorderBrush="White" BorderThickness="0" Content="Information" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" Height="28" Name="label_PlanInfo" Width="147" />
        </WrapPanel>
        <WrapPanel Background="#FF3E3832" Canvas.Left="37" Canvas.Top="486" Height="29" Orientation="Horizontal" Margin="423,326,61,214" Grid.Row="1">
            <Label BorderBrush="White" BorderThickness="0" Content="Assign Team " FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" Height="28" HorizontalAlignment="Left" Margin="25,0,0,0" Name="label8" VerticalAlignment="Top" Width="96" />
            
            <toolkit:AutoCompleteBox Name="TeamAutocompleteTextBox" Width="176" Margin="0,0,0,0" Height="30"  ValueMemberPath="team_name"  FilterMode="Contains"  ItemsSource="{Binding}"  TabIndex="1" IsTabStop="True"  SelectionChanged="TeamReferenceTextBox_SelectionChanged" FontSize="18" Background="White" Opacity="1" HorizontalAlignment="Center" UseLayoutRounding="False" BorderBrush="#FFF8F8F8" BorderThickness="2">
                <toolkit:AutoCompleteBox.ItemTemplate>
                    <DataTemplate>
                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="{Binding Path=team_name}"/>
                            <TextBlock Text=" - "/>
                            <TextBlock Text="{Binding Path=team_reference}"/>

                        </StackPanel>
                    </DataTemplate>
                </toolkit:AutoCompleteBox.ItemTemplate>
            </toolkit:AutoCompleteBox>
            <Button Content="New" Height="30" Margin="300,-30,0,0" Name="button_catAdd" Width="30" Click="button_catAdd_Click">
                 
            </Button>
        </WrapPanel>
        <Expander Canvas.Left="38" Canvas.Top="367" FontSize="16" FontStyle="Italic" FontWeight="Medium" Foreground="White" Header="More Location Details" Height="209" IsEnabled="True" IsExpanded="True" Name="expander_locationDetails" Margin="20,0,418,360" Grid.Row="1">
            <Grid Height="234" Width="426">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="0*" />
                    <ColumnDefinition Width="343*" />
                    <ColumnDefinition Width="70*" />
                </Grid.ColumnDefinitions>
                <StackPanel Grid.Column="1" Grid.ColumnSpan="2" Margin="3,-34,-4,6" Name="stackPanel1">
                    <WrapPanel Height="28" Margin="0,5,0,0" Orientation="Horizontal" VerticalAlignment="Top" Width="398">
                        <WrapPanel Height="18" Name="wrapPanel2" Width="118" />
                    </WrapPanel>
                </StackPanel>
                <WrapPanel Grid.Column="1" Grid.ColumnSpan="2" Margin="3,10,12,35" Orientation="Horizontal">
                    <ListView Canvas.Left="12" Canvas.Top="68" Height="138" Name="listView1"  Width="374" Background="#FFFFECA1">
                        <ListView.View>
                            <GridView>
                                <GridViewColumn DisplayMemberBinding="{Binding Loc_longitude}" Header="Longitude" Width="150" />
                                <GridViewColumn DisplayMemberBinding="{Binding Loc_latitude}" Header="Latitude" Width="150" />
                            </GridView>
                        </ListView.View>
                    </ListView>
                </WrapPanel>
            </Grid>
        </Expander>
        <Label BorderBrush="White" BorderThickness="0" Content="Other Details" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" Height="28" HorizontalAlignment="Left" Margin="24,174,0,0" Name="label_othDetails" VerticalAlignment="Top" Width="374" Grid.Row="1" Background="#FF3E3832" />
        <Grid HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,12,14,0"></Grid>
        <Image Height="32" Margin="738,19,54,170" Source="/CECB;component/images/closeblack.png" Width="32" MouseLeftButtonDown="Image_MouseLeftButtonDown" />
        <WrapPanel VerticalAlignment="Top" Background="#FF3E3832" Name="wrapPanelUserLogin" Margin="23,156,416,0" Orientation="Horizontal" Width="384">
            <Label Content="Project Type" Width="121" Height="28" Name="label_projtype" HorizontalAlignment="Left" Margin="25,0,0,0" VerticalAlignment="Top" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
            <TextBox Name="textBox_ProjType" TextWrapping="Wrap" VerticalAlignment="Top" Height="28" FontSize="16" Background="#FFFFECA1" SelectionBrush="#FF6E6E6E" Foreground="#FF332F2F" HorizontalAlignment="Right" Width="228" IsEnabled="True" IsReadOnly="True" />
        </WrapPanel>
    </Grid>
</Window>
